package com.emep.changzhi.analyse.repository.basics;

import com.emep.changzhi.analyse.entity.basics.SysRegionInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;

import javax.transaction.Transactional;

/**
 * @author xy
 * @Description: 流域持久层
 * @date 2018/2/24 17:01
 * @version V1.0
 */

public interface SysRegionInfoRepository extends BaseRepository<SysRegionInfo, Long> {

    @Modifying
    @Transactional
    Integer deleteById(String id);

    SysRegionInfo findRegionById(String id);

    Page<SysRegionInfo> findAll(Specification<SysRegionInfo> spec, Pageable pageable);
}
